package com.zhc.validate.generator;

import com.zhc.validate.entity.Range;

import java.util.Map;
import java.util.function.Function;

public class RandomNumberGenerator {
    public static Map<Class<?>, Function<Object,Object>> random;

    static {
        random.put(Integer.class, new Function<Object, Object>() {
            @Override
            public Object apply(Object o) {

                return null;
            }
        });
    }

    private static Object getRandomInteger(Object o) {
        return null;
    }


    public static Integer getRandomInteger(Range range) {
        return (Integer) (int) Range.getValueMinToMax(range);
    }
}
